package org.linlinjava.litemall.core.aop;

public class AspectUtils {

	public static boolean isLogPoint(final Target target) {

		return target.getMethod().isAnnotationPresent(LogPoint.class);
	}

	public static boolean isExclude(final Target target) {
		return target.getMethod().isAnnotationPresent(Exclude.class);
	}

	public static boolean needIP(final Target target) {

		return target.getMethod().isAnnotationPresent(RequestIP.class);
	}

	public static boolean needHeader(final Target target) {
		return target.getMethod().isAnnotationPresent(RequestHeader.class);
	}
}
